package com.leyou.common.auth.entity;

import lombok.Data;

import java.util.Date;

/**
 * @package com.leyou.common.auth.entity
 * @description: 封装jwt载荷数据的实体类
 * @author: 许超越
 * @date 2019/7/7 15:13
 * @version: V1.0
 */
@Data
public class Payload<T> {
    //jwt的id
    private String id;
    //分装用户信息
    private T userInfo;
    //token的有效时间
    private Date expiration;
}
